package com.autumn.domain.entities.auditing;

import java.util.Date;

import javax.persistence.Column;

import com.autumn.common.api.domain.entities.auditing.IGmtModified;
import com.autumn.mybatis.mapper.annotation.ColumnOrder;

/**
 * 具有修改审计的抽象实体
 * 
 * @author 老码农
 *         <p>
 * 		Description
 *         </p>
 * @date 2017-12-31 21:24:10
 * @param <TPrimaryKey>
 */
public abstract class AbstractGmtModifiedEntity<TPrimaryKey> extends AbstractGmtCreateEntity<TPrimaryKey> implements IGmtModified {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2679866921633499656L;
	

	@ColumnOrder(10100)
	@Column(name = AuditingConsts.COLUMN_GMT_MODIFIED, nullable = true)
	private Date gmtModified;

	@Override
	public Date getGmtModified() {
		return this.gmtModified;
	}

	@Override
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
}
